package com.ssn.command.screen;

public class Client {
    public static void main(String[] args) {
        BoardScreen screen = new BoardScreen();

        Command openCommand = new OpenCommand(screen);
        Command createCommand = new CreateCommand(screen);
        Command editCommand = new EditCommand(screen);

        Menu menu = new Menu();

        MenuItem item1 = new MenuItem();
        item1.setCommand(openCommand);
        menu.addItem(item1);

        MenuItem item2 = new MenuItem();
        item2.setCommand(createCommand);
        menu.addItem(item2);

        MenuItem item3 = new MenuItem();
        item3.setCommand(editCommand);
        menu.addItem(item3);

        menu.getItemClick(1);
        menu.getItemClick(0);
        menu.getItemClick(2);
    }
}
